import QtQuick 2.0

Rectangle{
    id: relay

    signal messageReceived(string person, string notice);
    Component.onCompleted: {
        relay.messageReceived.connect(sendToPost)
        relay.messageReceived.connect(sendToMail)
        relay.messageReceived("Luchu", "Notice.")
    }

    function sendToPost(person, notice){
        console.log("Sending to post: " + person + ", " + notice)
    }

    function sendToMail(person, notice){
        console.log("Sending to mail: " + person + ", " + notice)
    }
}
